import { _decorator, Component, Node, Prefab, instantiate, director } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('node')
export class node extends Component {
	@property(Prefab)
	nodess:Prefab = null
    start() {
		let bgday = instantiate(this.nodess)
		bgday.setParent(director.getScene().getChildByName('Canvas'))
    }

    update(deltaTime: number) {
        
    }
}

